import request from '@/router/axios';

// 查询
export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-product/workorder-product-reference/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};
// 解绑
export const unbind = (data) => {
  return request({
    url: '/api/mes-product/workorder-product-reference/unbinding',
    method: 'post',
    data
  });
};
//绑定
export const bind = (data) => {
  return request({
    url: '/api/mes-product/workorder-product-reference/binding',
    method: 'post',
    data
  });
};

//获取轴号
export const getPackNum = (params) => {
  return request({
    url: '/api/mes-warehouse/packing/query-sn',
    method: 'get',
    params: {
      ...params
    }
  });
};
